network = { 
{name = "grauna", IP = "210.26.30.34"}, 
{name = "arraial", IP = "210.26.30.23"}, 
{name = "lua", IP = "210.26.23.12"}, 
{name = "derain", IP = "210.26.23.20"}, 
}

function list_iter (t) 
local i = 0 
local n = table.getn(t) 
return function() 
  i = i + 1 
if i <= n then return t[i] end
end 
end

function test()
local t={"what","the","fk2"}
for element in list_iter(t) do
print(element) 
end

local file,msg = io.open("1.txt","r")
if not file then print(msg,"\n",debug.traceback()) end
end

function test2()
local	co = coroutine.create(function (a,b)
	for i =1,3 do
		print("a+b = ",a+b) 
		a,b = coroutine.yield(a+b) 
	end
	
	print("Finish...")
 end);

 local b,ret;
 b,ret=coroutine.resume(co,1,2);
 print(ret)
 b,ret=coroutine.resume(co,3,4);
 print(ret)
 b,ret=coroutine.resume(co,5,6); 
 print(ret)
 b,ret=coroutine.resume(co,7,8);
end
